<?php 
	include '../function.php';

	$paths = glob("./Upload/2017-09-12/*");

 ?>
<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<form action="./upload1.php" method="post" enctype="multipart/form-data">

		<input type="file" name="file">
		<input type="submit" value="上传">
	</form>

	<table border="1">
		<tr>
			<td>文件名</td>
			<td>大小</td>
			<td>创建时间</td>
			<td>操作</td>
		</tr>

		<?php foreach ($paths as $key => $row) { ?>
		
		<tr>
			<td><?php echo basename($row); ?></td>
			<td><?php echo filesize($row); ?></td>
			<td><?php echo Ftime(filectime($row)); ?></td>
			<td><a href="./del.php?url=<?php echo $row ?>">删除</a>
				<a href="./down.php?url=<?php echo $row ?>">下载</a></td>
		</tr>

		<?php } ?>
		
	</table>
</body>
</html>